package net.mikoo.seals.api.model.seal;

public class SealListRequest {

	private String sealName;
	
	private String sealStatus;
	
	private Integer pageNo;
	
	private Integer pageSize;
	
	private String purpose;

	public String getSealName() {
		return sealName;
	}

	public void setSealName(String sealName) {
		this.sealName = sealName;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getSealStatus() {
		return sealStatus;
	}

	public void setSealStatus(String sealStatus) {
		this.sealStatus = sealStatus;
	}

	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public static enum PurposeEnum{
		
		SYSTEM_ADMIN_SEAL_LIST("system_admin_seal_list", "系统管理员印章列表"),
		ADMIN_SEAL_LIST("admin_seal_list", "管理员印章列表"),
		APPLY("applySearch", "申请查询");
		
		private PurposeEnum(String code, String message) {
			this.code = code;
			this.message = message;
		}

		private String code;
		
		private String message;

		public String getCode() {
			return code;
		}

		public String getMessage() {
			return message;
		}
		
		public static PurposeEnum getByCode(String code) {
			for(PurposeEnum ele : PurposeEnum.values()) {
				if(ele.code.equals(code)) {
					return ele;
				}
			}
			return null;
		}
		
	}
}
